
if(CONFIG_OPEN62541)
    set(UA_ARCHITECTURE "zephyr" CACHE STRING "" FORCE)
    macro(open62541_translate_zephyr_bool_option name option)
        set(${name} 0 CACHE STRING "" FORCE)
        if(DEFINED ${option})
            if (${${option}} STREQUAL "y")
                set(${name} 1 CACHE STRING "" FORCE)
            endif()
        endif()
    endmacro()
    macro(open62541_translate_zephyr_param_option name option)
        if(DEFINED ${option})
            set(${name} ${${option}} CACHE STRING "" FORCE)
        endif()
    endmacro()
    open62541_translate_zephyr_bool_option(UA_ENABLE_AMALGAMATION CONFIG_OPEN62541_ENABLE_AMALGAMATION)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DIAGNOSTICS CONFIG_OPEN62541_ENABLE_DIAGNOSTICS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_METHODCALLS CONFIG_OPEN62541_ENABLE_METHODCALLS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_SUBSCRIPTIONS CONFIG_OPEN62541_ENABLE_SUBSCRIPTIONS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_SUBSCRIPTIONS_EVENTS CONFIG_OPEN62541_ENABLE_SUBSCRIPTIONS_EVENTS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DA CONFIG_OPEN62541_ENABLE_DA)
    open62541_translate_zephyr_bool_option(UA_ENABLE_HISTORIZING CONFIG_OPEN62541_ENABLE_HISTORIZING)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DISCOVERY CONFIG_OPEN62541_ENABLE_DISCOVERY)
    open62541_translate_zephyr_bool_option(UA_ENABLE_JSON_ENCODING CONFIG_OPEN62541_ENABLE_JSON_ENCODING)
    open62541_translate_zephyr_bool_option(UA_ENABLE_XML_ENCODING CONFIG_OPEN62541_ENABLE_XML_ENCODING)
    open62541_translate_zephyr_bool_option(UA_ENABLE_NODESETLOADER CONFIG_OPEN62541_ENABLE_NODESETLOADER)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DATATYPES_ALL CONFIG_OPEN62541_ENABLE_DATATYPES_ALL)
    open62541_translate_zephyr_bool_option(UA_ENABLE_SUBSCRIPTIONS_ALARMS_CONDITIONS CONFIG_OPEN62541_ENABLE_SUBSCRIPTIONS_ALARMS_CONDITIONS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_NODEMANAGEMENT CONFIG_OPEN62541_ENABLE_NODEMANAGEMENT)
    open62541_translate_zephyr_bool_option(UA_ENABLE_PARSING CONFIG_OPEN62541_ENABLE_PARSING)
    open62541_translate_zephyr_bool_option(UA_ENABLE_INLINABLE_EXPORT CONFIG_OPEN62541_ENABLE_INLINABLE_EXPORT)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DISCOVERY_MULTICAST CONFIG_OPEN62541_ENABLE_DISCOVERY_MULTICAST)
    open62541_translate_zephyr_bool_option(UA_ENABLE_ENCRYPTION_MBEDTLS CONFIG_OPEN62541_ENABLE_ENCRYPTION_MBEDTLS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_QUERY CONFIG_OPEN62541_ENABLE_QUERY)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DEBUG_SANITIZER CONFIG_OPEN62541_ENABLE_DEBUG_SANITIZER)
    open62541_translate_zephyr_bool_option(UA_ENABLE_PUBSUB CONFIG_OPEN62541_ENABLE_PUBSUB)
    open62541_translate_zephyr_bool_option(UA_ENABLE_PUBSUB_SKS CONFIG_OPEN62541_ENABLE_PUBSUB_SKS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_PUBSUB_INFORMATIONMODEL CONFIG_OPEN62541_ENABLE_PUBSUB_INFORMATIONMODEL)
    open62541_translate_zephyr_bool_option(UA_ENABLE_PUBSUB_FILE_CONFIG CONFIG_OPEN62541_ENABLE_PUBSUB_FILE_CONFIG)
    open62541_translate_zephyr_bool_option(UA_ENABLE_MQTT CONFIG_OPEN62541_ENABLE_MQTT)
    open62541_translate_zephyr_bool_option(UA_ENABLE_STATUSCODE_DESCRIPTIONS CONFIG_OPEN62541_ENABLE_STATUSCODE_DESCRIPTIONS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_TYPEDESCRIPTION CONFIG_OPEN62541_ENABLE_TYPEDESCRIPTION)
    open62541_translate_zephyr_bool_option(UA_ENABLE_NODESET_COMPILER_DESCRIPTIONS CONFIG_OPEN62541_ENABLE_NODESET_COMPILER_DESCRIPTIONS)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DETERMINISTIC_RNG CONFIG_OPEN62541_ENABLE_DETERMINISTIC_RNG)
    open62541_translate_zephyr_bool_option(UA_ENABLE_MALLOC_SINGLETON CONFIG_OPEN62541_ENABLE_MALLOC_SINGLETON)
    open62541_translate_zephyr_param_option(UA_FILE_NS0 CONFIG_OPEN62541_FILE_NS0)
    open62541_translate_zephyr_param_option(UA_FILE_NS0_BLACKLIST CONFIG_OPEN62541_FILE_NS0_BLACKLIST)
    open62541_translate_zephyr_bool_option(UA_ENABLE_DISCOVERY_SEMAPHORE CONFIG_OPEN62541_ENABLE_DISCOVERY_SEMAPHORE)
    open62541_translate_zephyr_bool_option(UA_DEBUG_DUMP_PKGS CONFIG_OPEN62541_DEBUG_DUMP_PKGS)
    open62541_translate_zephyr_bool_option(UA_DEBUG_FILE_LINE_INFO CONFIG_OPEN62541_DEBUG_FILE_LINE_INFO)
    open62541_translate_zephyr_param_option(UA_MULTITHREADING CONFIG_OPEN62541_MULTITHREADING)
    open62541_translate_zephyr_param_option(UA_NAMESPACE_ZERO CONFIG_OPEN62541_NAMESPACE_ZERO)
endif()
